package database;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Interface for getting and storing data to an SQL server.
 */
public interface SQLServer {
	/**
	 * Execute an SQL update statement.
	 * @param statement
	 * @throws SQLException
	 */
	public void update(String statement) throws SQLException;
	
	/**
	 * Execute an SQL select statement
	 * @param statement
	 * @return ResultSet
	 * @throws SQLException
	 */
	public ResultSet select(String statement) throws SQLException;
	
	/**
	 * Disconnect from the server.
	 * @return success
	 */
	public boolean disconnect();
}
